package com.homedo.odin.solution.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.homedo.odin.solution.model.entity.UserActionLog;
import com.homedo.odin.solution.model.response.mng.useractionlog.UserActionLogResponseBean;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * <p> Mapper接口 </p>
 *
 * @author ZhangLei
 * @date 2018-05-15
 * @Description:
 */
public interface UserActionLogMapper extends BaseMapper<UserActionLog> {

    /**
     * 获取日志列表（包含用户基本信息）
     */
    List<UserActionLogResponseBean> getLogsWithUserInfo(@Param("businessId") Long businessId,
            @Param("businessType") String businessType);

    /**
     * 获取日志列表
     */
    List<UserActionLogResponseBean> getLogs(@Param("businessId") Long businessId,
            @Param("businessType") String businessType);

    /**
     * 获取该业务分类下已有的位置列表
     */
    List<String> getPositions(@Param("bizType") String bizType);
}